package com.dxy.dxyuser.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    LOGIN_FAIL(1, "登录失败"),
    ROLE_ERROR(2, "角色权限有误"),
    NOT_IDENTITY_USER(3, "身份失效"),
    USER_EXIST(4, "用户名已存在"),
    LOGIN_PASSWORD_NOT_RIGHT(5, "用户名密码不一致"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
